﻿@{
    ViewBag.Title = "保存配送方式";
    ViewBag.NavTitle = "保存配送方式";
    Layout = "~/Views/Shared/_UsersCenterLayout.cshtml";
}
@using MvcMall.Portal.Controllers.Stores.ViewModels;
@model SaveStoreShippingModel
<script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div class="right_box">
    <div class="right_box_map">
        保存配送方式
    </div>
    @using (Html.BeginForm("SaveShipping","Stores",null,FormMethod.Post,null))
    {
        <table style="margin-top: 10px;" width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr height="40">
                <td class="tab2_td">
                    @Html.HiddenFor(c => c.Id)
                    @Html.LabelFor(c => c.ShipName)：
                </td>
                <td>
                    @Html.TextBoxFor(c => c.ShipName, new { @class = "tab_input", @style = " width:150px;" })
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.ShipName)
                </td>
            </tr>
            <tr height="40">
                <td class="tab2_td">
                    @Html.LabelFor(c => c.ShipAddress)：
                </td>
                <td>
                    @Html.TextBoxFor(c => c.ShipAddress, new { @class = "tab_input", @style = " width:150px;" })
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.ShipAddress)
                </td>
            </tr>
            <tr height="40">
                <td class="tab2_td">
                    @Html.LabelFor(c => c.ShipPrice)：
                </td>
                <td>
                    @Html.TextBoxFor(c => c.ShipPrice, new { @class = "tab_input" })
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.ShipPrice)
                </td>
            </tr>
            <tr height="40">
                <td class="tab2_td">
                    @Html.LabelFor(c => c.ShipUnitPrice)：
                </td>
                <td>
                    @Html.TextBoxFor(c => c.ShipUnitPrice, new { @class = "tab_input" })
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.ShipUnitPrice)
                </td>
            </tr>
            <tr height="40">
                <td class="tab2_td">
                    @Html.LabelFor(c => c.SortOrder)：
                </td>
                <td>
                    @Html.TextBoxFor(c => c.SortOrder, new { @class = "tab_input" })
                </td>
                <td>
                    @Html.ValidationMessageFor(c => c.SortOrder)
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td colspan="2">
                    <input type="submit" value="保存地址" />
                </td>
            </tr>
        </table>
    }
</div>
